<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>注册</title>
	<link rel="stylesheet" href="css/style.css" >
</head>
<body>
	<div id="div-title">
		<h3>欢迎注册</h3>
	</div>
	<div id="form-border">
		<form action="RegisterServlet" method="post">
			<div id="img-control">
				<img src="images/zctx.jpg" id="register-img"/>
			</div>
			<label class="form-label" for="account">账&nbsp;号</label>
			<input name="username" id="account" class="form-input" type="text" placeholder="账号" required="required"/><br>
			<label class="form-label" for="password">密&nbsp;码</label>
			<input name="userpass" id="password" class="form-input" type="password" placeholder="密码" required="required"/><br>
			
			<label class="form-label" for="sex">性&nbsp;别</label>
			<input name="sex" id="sex" class="form-input" type="sex" placeholder="性别" required="required"/><br>
			<label class="form-label" for="phone">电&nbsp;话&nbsp;号&nbsp;码</label>
			<input name="phone" id="phone" class="form-input" type="phone" placeholder="电话号码" required="required"/><br>
			
			<input id="login" class="form-button2" type="submit" value="注册"/>
			<label id="register" class="form-zh" for="password"><a class="zh2" href="login.jsp">已有账号？点击登陆</a></label><br>
		</form>
	</div>
</body>
<script>
	function $(n){
		return document.getElementById(n);
	}
	function changeCode(){
		var date = new Date();
		var time=date.getTime();
		$("img").src="CheckCodeServlet?num=1"+time;
	}
</script>
</html>